﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace eSolution_HRMSS.UserControls.DanhMuc
{
    public partial class UC_DanhMuc : DevExpress.XtraEditors.XtraUserControl
    {
        public UC_DanhMuc()
        {
            InitializeComponent();
        }

        private void navBarItem2_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_ChuyenMon chuyenmon = new UC_ChuyenMon();
            chuyenmon.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(chuyenmon);
        }

        private void navBarItem3_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_HocVan bangcap = new UC_HocVan();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem7_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_QuocTich quoctich = new UC_QuocTich();
            quoctich.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(quoctich);
        }

        private void navBarItem8_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_DanToc dantoc = new UC_DanToc();
            dantoc.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(dantoc);
        }

        private void navBarItem9_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_TonGiao tongiao = new UC_TonGiao();
            tongiao.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(tongiao);
        }

        private void navBarItem10_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_QuanHeGiaDinh qhgd = new UC_QuanHeGiaDinh();
            qhgd.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(qhgd);
        }

        private void UC_DanhMuc_Load(object sender, EventArgs e)
        {

        }

        private void bcdanhmuc_Click(object sender, EventArgs e)
        {

        }

        private void navBarItem12_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_NgoaiNgu ngoaingu = new UC_NgoaiNgu();
            ngoaingu.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(ngoaingu);
        }

        private void navBarItem13_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_TinHoc tinhoc = new UC_TinHoc();
            tinhoc.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(tinhoc);
        }

        private void navBarItem14_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_KiNang kinang = new UC_KiNang();
            kinang.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(kinang);
        }

        private void navBarItem6_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_CongViec congviec = new UC_CongViec();
            congviec.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(congviec);
        }

        private void navBarItem11_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_BangCap bangcap = new UC_BangCap();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem1_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_ChucVu bangcap = new UC_ChucVu();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem15_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_ChiNhanh bangcap = new UC_ChiNhanh();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem16_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_PhongBan bangcap = new UC_PhongBan();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem17_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_ToNhom bangcap = new UC_ToNhom();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem21_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_NgachLuong bangcap = new UC_NgachLuong();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem22_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_BacLuong bangcap = new UC_BacLuong();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem23_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_PhuCap bangcap = new UC_PhuCap();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem18_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_CaLamViec bangcap = new UC_CaLamViec();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }

        private void navBarItem19_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            UC_KyHieuChamCong bangcap = new UC_KyHieuChamCong();
            bangcap.Dock = DockStyle.Fill;
            pnchildcontrol.Controls.Clear();
            pnchildcontrol.Controls.Add(bangcap);
        }
    }
}
